Image pickup apparatus, exposure decision method, program, and storage medium

ABSTRACT

The object of this invention is to increase the precision of an exposure value in a scan AE scheme. To achieve this object, an image is picked at a plurality of exposure values. Screen-split brightness values and exposure value differences are obtained for the respective exposure values. Two screen-split brightness values and exposure value differences are selected from the relationship between the exposure value differences. A brightness value is calculated from the selected values to decide an exposure value in actual exposure.

FIELD OF THE INVENTION

[0001] The present invention relates to an image pickup apparatus, exposure decision method, program, and storage medium.

BACKGROUND OF THE INVENTION

[0002] One of means for deciding the exposure of a digital camera is a scan type exposure decision apparatus for performing photometry at predetermined exposure values and deciding optimal exposure on the basis of the photometry data.

[0003] According to this method, photometry is done at a plurality of exposure values, and the exposure difference value between the brightness value of a screen and a target brightness value at each exposure value is calculated. The exposure value of actual exposure is decided by using an exposure value having the smallest absolute value of the exposure difference value out of images obtained at these exposure values, and by using the exposure difference value of this exposure value.

[0004] However, this apparatus may not accurately calculate an exposure difference value under the influence of the saturation characteristic of a CCD or the like.

[0005] The method of obtaining an exposure value in the apparatus will be exemplified.

[0006] In FIG. 5, the ordinate represents the level of the exposure value.

[0007] Letting BvT0 be the exposure value of an object, exposure difference values upon exposure at exposure values Bv0 and Bv1 are DeltaBv0 and DeltaBv1. The exposure value difference upon exposure at the exposure value Bv0 does not become DeltaBv0′ because the value is clipped due to the saturation characteristic of the CCD and Bv0 is output as a value smaller an actual value.

[0008] Comparing the absolute values of DeltaBv0 and DeltaBv1, DeltaBv1 is smaller. An exposure value BvT0 is therefore attained by Bv1+DeltaBv1.

[0009] If accurate values of both Bv0 and Bv1 cannot be obtained, as shown in FIG. 6, neither Bv0+DeltaBv0 nor Bv1+DeltaBv1 may coincide with BvT1.

[0010] This phenomenon prevents accurate determination of the exposure value of an object.

[0011] To attain accurate exposure by this method, the number of exposure scan operations must be increased in consideration of CCD saturation and the presence of a nonlinear region. Exposure must be more finely set to minimize errors under the influence of saturation or the like.

[0012] This scan must be performed when the user presses the shutter. An increase in the number of scan operations directly leads to an increased shutter time lag.

SUMMARY OF THE INVENTION

[0013] The present invention has been made in consideration of the above situation, and has as its object to provide an exposure decision apparatus capable of obtaining an accurate exposure value while minimizing the shutter time lag, an image pickup apparatus having the exposure decision apparatus, a program, and a storage medium.

[0014] To solve the conventional problem and achieve the above object, an image pickup apparatus according to the present invention has the following arrangement.

[0015] More specifically, the image pickup apparatus comprises an image pickup device that picks up an object, and a processing device having a brightness value calculation unit that obtains brightness values of an image at respective exposure values from a plurality of image data obtained by picking up an image by the image pickup device at a plurality of different exposure values, an exposure difference value calculation unit that calculates exposure difference values representing differences between the brightness values and a preset target brightness value in actual exposure, and an exposure value calculation unit that calculates an exposure value in actual exposure on the basis of at least two image data out of the plurality of image data in accordance with calculation results of the exposure difference value calculation unit.

[0016] An exposure decision method according to the present invention has the following steps.

[0017] More specifically, the exposure decision method comprises the brightness value calculation step of obtaining brightness values of an image at respective exposure values from a plurality of image data obtained by picking up an image at a plurality of different exposure values, the exposure difference value calculation step of calculating exposure difference values representing differences between the brightness values and a preset target brightness value in actual exposure, and the exposure value calculation step of calculating an exposure value in actual exposure on the basis of at least two image data out of the plurality of image data in accordance with calculation results in the exposure difference value calculation step.

[0018] A program according to the present invention has the following processing.

[0019] More specifically, a program causes a computer to execute the exposure decision method.

[0020] A storage medium according to the present invention has the following structure.

[0021] More specifically, a storage medium computer-readably stores the program.

[0022] Other objects and advantages besides those discussed above shall be apparent to those skilled in the art from the description of a preferred embodiment of the invention which follows. In the description, reference is made to accompanying drawings, which form a part hereof, and which illustrate an example of the invention. Such example, however, is not exhaustive of the various embodiments of the invention, and therefore reference is made to the claims which follow the description for determining the scope of the invention.

BRIEF DESCRIPTION OF THE DRAWINGS

[0023]FIG. 1 is a processing block diagram of an embodiment;

[0024]FIG. 2 is a block diagram of an AE calculation unit in the embodiment;

[0025]FIG. 3 is a view showing a weighting factor for each screen-split area in the embodiment;

[0026]FIG. 4 is a view for explaining an exposure decision apparatus in the embodiment;

[0027]FIG. 5 is a view for explaining a scan type exposure decision apparatus; and

[0028]FIG. 6 is a view for explaining the scan type exposure decision apparatus.

DETAILED DESCRIPTION OF THE PREFERRED EMBODIMENTS

[0029] A preferred embodiment of the present invention will be described below.

[0030]FIG. 1 is a schematic block diagram showing a digital camera according to the embodiment of the present invention.

[0031] Reference numeral 101 denotes an image pickup unit which includes a lens system, a stop, a shutter, an electronic shutter, an image pickup element such as a CCD, and an A/D converter. The image pickup unit 101 outputs an image projected on the CCD via the lens system as a digital signal.

[0032] Reference numeral 102 denotes an AF controller. When the user releases the shutter, the AF controller 102 detects the focus.

[0033] Reference numeral 103 denotes an image pickup controller. The image pickup controller 103 executes lens focusing control on the basis of focus data.

[0034] After the lens is focused, an AE controller 105 obtains an F-number and electronic shutter speed from a predetermined exposure value ControlBv0, and sends these values to the image pickup controller 103.

[0035] The image pickup controller 103 projects an image on the CCD at the received F-number and electronic shutter speed, thus obtaining image data.

[0036] The image data controlled and obtained at the exposure value ControlBv0 is sent to an AE calculation unit 104.

[0037]FIG. 2 is a block diagram showing the AE calculation unit.

[0038] The operation of the AE calculation unit 104 will be explained.

[0039] From image data 201 sent from the image pickup unit 101, an area brightness value calculation unit 202 for calculating a brightness value calculates the average brightness value (I=0,5, J=0,5) of each 6×6 area.

[0040] The obtained brightness value Y(I,J) of each area is used to calculate an exposure difference value DeltaBv based on equation (1) by an exposure difference value calculation unit 203 for calculating the exposure difference value DeltaBv for a target brightness value Yref: $\begin{matrix} {{DeltaBv} = {{Log}_{2}\left( \frac{\sum\left( {{Y\left( {I,J} \right)} \times {{Weight}\left( {I,J} \right)}} \right)}{\sum{{{Weight}\left( {I,J} \right)} \times {Yref}}} \right)}} & (1) \end{matrix}$

[0041] where Yref is the target brightness value of an image, and Weight(I,J) is the weighting factor of each area shown in FIG. 3.

[0042] The calculated exposure difference value and Y(I,J) calculated by the area brightness value calculation unit 202 are sent to an area brightness value & exposure difference value memory 204. These values are respectively stored as an exposure difference value DeltaBv0 and area brightness value Y0(I,J) upon exposure at the exposure value ControlBv0.

[0043] Similarly, the image pickup element is exposed at different exposure values ControlBv1 and ControlBv2 by the AE controller 105 in FIG. 1. An exposure difference value DeltaBv1 of a screen and an area brightness value Y1(I,J) upon exposure at the exposure value ControlBv1, and an exposure difference value DeltaBv2 of a screen and an area brightness value Y2(I,J) upon exposure at the exposure value ControlBv2 are calculated and stored in the area brightness value & exposure difference value memory 204 in FIG. 2.

[0044] These exposure values satisfy

ControlBv0>ControlBv1>ControlBv2  (2)

[0045] After the exposure difference values DeltaBv and area brightness values Y(I,J) upon exposure of the image pickup element at the three exposure values ControlBv0, ControlBv1, and ControlBv2 are obtained, an actual exposure value calculation unit 205 for calculating an exposure value calculates an exposure value Bv 206 in actual exposure, or the basis of which an object is actually picked up for recording in a storage device, by:

For DeltaBv0≧0, Bv=ControlBv0+DeltaBv0 For DeltaBv0<0 and DeltaBv1≧0,  (3)

[0046] $\begin{matrix} {{{Ycalc}\left( {I,J} \right)} = \frac{\begin{matrix} \left( {{{Y0}\left( {I,J} \right)} \times {{ABS}({DeltaBv1})} \times 2^{\hat{}}\left( {{ControlBv0} -} \right.} \right. \\ \left. {\left. {ControlBv1} \right) + {{{Y1}\left( {I,J} \right)} \times {{ABS}({DeltaBv0})}}} \right) \end{matrix}}{\left( {{{ABS}({DeltaBv0})} + {{ABS}({DeltaBv1})}} \right)}} & (4) \\ {{DeltaBvcalc} = {{Log}_{2}\left( \frac{\sum\left( {{{Ycalc}\left( {I,J} \right)} \times {{Weight}\left( {I,J} \right)}} \right)}{\sum{{{Weight}\left( {I,J} \right)} \times {Yref}}} \right)}} & (5) \end{matrix}$

Bv=ControlBv1+DeltaBvcalc  (6)

[0047] where ABS(A) is the absolute value of A.

[0048] For DeltaBv1<0 and DeltaBv2≧0, $\begin{matrix} {{{Ycalc}\left( {I,J} \right)} = \frac{\begin{matrix} \left( {{{Y1}\left( {I,J} \right)} \times {{ABS}({DeltaBv2})} \times 2^{\hat{}}\left( {{ControlBv1} -} \right.} \right. \\ \left. {\left. {ControlBv2} \right) + {{{Y2}\left( {I,J} \right)} \times {{ABS}({DeltaBv1})}}} \right) \end{matrix}}{\left( {{{ABS}({DeltaBv1})} + {{ABS}({DeltaBv2})}} \right)}} & (7) \\ {{DeltaBvcalc} = {{Log}_{2}\left( \frac{\sum\left( {{{Ycalc}\left( {I,J} \right)} \times {{Weight}\left( {I,J} \right)}} \right)}{\sum{{{Weight}\left( {I,J} \right)} \times {Yref}}} \right)}} & (8) \end{matrix}$

Bv=ControlBv2+DeltaBvcalc  (9) For DeltaBv2<0,

Bv=ControlBv2+DeltaBv2  (10)

[0049] Equation (5) will be explained with reference to FIG. 4.

[0050] The ratio A:B=ABS(DeltaBv0):ABS(DeltaBv1) of the absolute values of DeltaBv0 and DeltaBv1 is calculated from the area brightness Y0(I,J) obtained upon exposure at Bv0 and the area brightness Y1(I,J) obtained upon exposure at Bv1. The calculated brightness value Ycalc(I,J) is obtained from the weighted mean of the ratio A:B. The exposure value Bv in actual exposure is calculated from the calculated brightness value Ycalc(I,J).

[0051] 2^ (ControlBv0-ControlBv1) is a coefficient for converting the brightness value Y0(I,J) calculated by the exposure value ControlBv0 into a brightness value obtained upon exposure at the exposure value ControlBv1.

[0052] The exposure value Bv in actual exposure calculated by the actual exposure value calculation unit 205 is sent to the AE controller 105 in FIG. 1. The AE controller 105 decides an F-number and shutter speed for actual exposure on the basis of the exposure value Bv.

[0053] The decided F-number and shutter speed are output to the image pickup controller 103. The image pickup unit 101 executes actual exposure on the basis of these values, and an actual exposure image digital signal is sent to an image processor 106.

[0054] The actual exposure image digital signal undergoes image processing such as chromatic processing, luminance processing, edge emphasis processing, gamma processing, and JPEG conversion processing in the image processor 106. The resultant data is output to a data write unit 107 and written in a storage medium.

[0055] In this embodiment, exposure scan is done using three exposure values. The number of exposure values is not limited to three, and can be arbitrarily set to two or more as far as the shutter time lag is permitted.

[0056] As described above, according to the above embodiment, the image pickup apparatus comprises an image pickup device for picking up an object, and a processing device having a brightness value calculation unit for obtaining the brightness values of a screen at respective exposure values from a plurality of image data obtained by picking up an image by the image pickup device at a plurality of different exposure values, an exposure difference value calculation unit for calculating exposure difference values representing differences between the brightness values and a preset target brightness value in actual exposure, and an exposure value calculation unit for calculating an exposure value in actual exposure on the basis of at least two image data out of the plurality of image data in accordance with the calculation results of the exposure difference value calculation unit. The embodiment can provide an exposure decision apparatus capable of minimizing the number of exposure scan operations necessary to obtain an accurate exposure value and capable of minimizing the shutter time lag, and an image pickup apparatus having the exposure decision apparatus.

[0057] (Other Embodiment)

[0058] The object of the embodiment is also achieved when a storage medium (or recording medium) which stores software program codes for realizing the functions of the above-described embodiment is supplied to a system or apparatus and the computer (or the CPU or MPU) of the system or apparatus reads out and executes the program codes stored in the storage medium. In this case, the program codes read out from the storage medium realize the functions of the above-described embodiment, and the storage medium which stores the program codes constitutes the present invention. The functions of the above-described embodiment are realized when the computer executes the readout program codes. Also, the functions of the above-described embodiment are realized when an OS (Operating System) running on the computer performs part or all of actual processing on the basis of the instructions of the program codes.

[0059] Furthermore, the functions of the above-described embodiment are realized when the program codes read out from the storage medium are written in the memory of a function expansion card inserted into the computer or the memory of a function expansion unit connected to the computer, and the CPU of the function expansion card or function expansion unit performs part or all of actual processing on the basis of the instructions of the program codes.

[0060] The present invention is not limited to the above embodiments and various changes and modifications can be made within the spirit and scope of the present invention. Therefore, to apprise the public of the scope of the present invention the following claims are made. 

What is claimed is:
 1. An image pickup apparatus comprising: an image pickup device that picks up an object; and a processing device having a brightness value calculation unit that obtains brightness values of an image at respective exposure values from a plurality of image data obtained by picking up an image by said image pickup device at a plurality of different exposure values, an exposure difference value calculation unit that calculates exposure difference values representing differences between the brightness values and a preset target brightness value in actual exposure, and an exposure value calculation unit that calculates an exposure value in actual exposure on the basis of at least two image data out of the plurality of image data in accordance with calculation results of said exposure difference value calculation unit.
 2. The apparatus according to claim 1, wherein said exposure value calculation unit obtains a calculated brightness value on the basis of exposure difference values representing differences between brightness values of the two image data and the target brightness value and exposure values of the two image data, and calculates the exposure value in actual exposure by using the calculated brightness value.
 3. The apparatus according to claim 2, wherein the calculated brightness value is obtained by a weighted mean of two image data brightness values based on absolute values of two exposure difference values.
 4. The apparatus according to claim 1, wherein said brightness value calculation unit calculates a brightness value for each screen-split block.
 5. An exposure decision method comprising: the brightness value calculation step of obtaining brightness values of an image at respective exposure values from a plurality of image data obtained by picking up an image at a plurality of different exposure values; the exposure difference value calculation step of calculating exposure difference values representing differences between the brightness values and a preset target brightness value in actual exposure; and the exposure value calculation step of calculating an exposure value in actual exposure on the basis of at least two image data out of the plurality of image data in accordance with calculation results in the exposure difference value calculation step.
 6. The method according to claim 5, wherein in the exposure value calculation step, a calculated brightness value is obtained on the basis of exposure difference values representing differences between brightness values of the two image data and the target brightness value and exposure values of the two image data, and the exposure value in actual exposure is calculated using the calculated brightness value.
 7. The method according to claim 6, wherein the calculated brightness value is obtained by a weighted mean of two image data brightness values based on absolute values of two exposure difference values.
 8. The method according to claim 5, wherein in the brightness value calculation step, a brightness value is calculated for each screen-split block.
 9. A program causing a computer to execute the exposure decision method defined in claim
 5. 10. A storage medium computer-readably storing the program defined in claim
 9. 